package dom.domain;

/**
 * SubtypeId entity. @author MyEclipse Persistence Tools
 */

public class SubtypeId implements java.io.Serializable {

	// Fields

	private Integer gid;
	private Integer sid;

	// Constructors

	/** default constructor */
	public SubtypeId() {
	}

	/** full constructor */
	public SubtypeId(Integer gid, Integer sid) {
		this.gid = gid;
		this.sid = sid;
	}

	// Property accessors

	public Integer getGid() {
		return this.gid;
	}

	public void setGid(Integer gid) {
		this.gid = gid;
	}

	public Integer getSid() {
		return this.sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof SubtypeId))
			return false;
		SubtypeId castOther = (SubtypeId) other;

		return ((this.getGid() == castOther.getGid()) || (this.getGid() != null
				&& castOther.getGid() != null && this.getGid().equals(
				castOther.getGid())))
				&& ((this.getSid() == castOther.getSid()) || (this.getSid() != null
						&& castOther.getSid() != null && this.getSid().equals(
						castOther.getSid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getGid() == null ? 0 : this.getGid().hashCode());
		result = 37 * result
				+ (getSid() == null ? 0 : this.getSid().hashCode());
		return result;
	}

}